<% if @tool.set_by_current_user? %>
  <div class='small'>
    <%= link_to_remote '新增我的设置',
          :update => :new_or_edit_my_setting,
          :url => new_in_show_new_tools_flash_url(:tool_id => @tool.id ),
          :method => :get,
          :html => {
            :class => :new
          } %>
    <%= link_to "返回我的大拼盘享用它", user_url(current_user), :class =>:h %>
  </div>  
  <% @settings.each do |setting| %>
  <div id='setting_<%= setting.id %>' class='show'>    
    <dl>
      <dt>大拼盘：</dt>
      <dd>
        <%= setting.column_name %>
      </dd>
    </dl>
    <div class='center'>  
      <%= link_to '馋死我了,直接开吃！', 
            tools_flash_url(setting.tool),
            :class => :other,      
            :target => :_blank,      
            :title => '馋死我了,直接开吃！' %>
      <%= link_to_remote '编辑我的设置',
          :update => :new_or_edit_my_setting,
          :url => edit_in_show_tools_flash_url(setting),
          :method => :get,
          :html => {
            :class => :edit
          } %>
      <%= link_to_remote '删除该设置',
          :confirm => '确认要删除吗？',
          :url => destroy_in_show_tools_flash_url(setting),
          :method => :delete,
          :loading => "Effect.Fade('setting_#{setting.id}')",
          :html => {
            :class => :delete
          } %>
    </div>
  </div>
  <% end %>
<% else %>
  <div id='new_my_setting'>
  <% if has_logined_by_user? %>
    <%= link_to "馋死我了,直接开吃！",
          tools_flash_url(@tool),
          :class => :other,      
          :target => :_blank,      
          :title => '馋死我了,直接开吃！',
          :class => 'enjoying'
          %>
    <%= link_to_remote "收藏到我的拼盘里",
          :update => :new_or_edit_my_setting,
          :url => new_in_show_new_tools_flash_url(:tool_id => @tool.id ),
          :method => :get,
          :title => '简单的设置，即可享用此大餐',
          :html => {
            :class => 'add_to_my_dish'
          } %>
  <% else %>
    <%= link_to "馋死我了,直接开吃！",
          new_session_url,
          :class => 'enjoying',      
          :title => '您尚未登录!',
          :class => 'enjoying'
          %>
  <% end %>
  </div>
<% end %>